﻿using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
    public class SMDBContext : DbContext
    {
        private readonly string? _ConnectionString;
        public SMDBContext(DbContextOptions<SMDBContext> opts, IConfiguration configuration) : base(opts)
        {
            _ConnectionString = configuration.GetConnectionString("ConnectionString");
        }

        /// <summary>
        /// 基础表
        /// </summary>
        public EntityBase EntityBase { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        public EntityUser EntityUser { get; set; }

        /// <summary>
        /// 报名表
        /// </summary>
        public EntityRegform EntityRegform { get; set; }
    }
}
